STRIP_TABLE_PATHS Function

Syntax

OutputString as C = strip_table_paths(C table_set_name [,L expand_set ])

Arguments

table_set_name

The fully qualified name of a table or set.

expand_set

Optional. Default = .F. .T. = Generate a list of tables included in the set. .F. = Do not generate a list.

Description

Removes path from a table filename if table is in database. In case of set returns stripped names of all tables in the set.

Discussion

STRIP_TABLE_PATHS() returns the name of the table or set without path information. When the optional Expand_Set argument is set to .T. (True), it creates a list of table names.

Example

? strip_table_paths("c:\databases\functions\function.dbf") ->   "function"
? strip_table_paths("function.dbf") ->   "function.dbf"
? strip_table_paths("code.set",.T.) ->  
FUNCTIONS
METHODS

See Also